import request from '@/utils/request'

// 查询phoneManager列表



export function listNumber(query) {
  return request({
    url: '/manager/phone/list',
    method: 'get',
    params: query
  })
}

// 查询phoneManager详细
export function getNumber(id) {
  return request({
    url: '/manager/phone/' + id,
    method: 'get'
  })
}

// 新增phoneManager
export function addNumber(data) {
  return request({
    url: '/manager/phone',
    method: 'post',
    data: data
  })
}

// 修改phoneManager
export function updateNumber(data) {
  return request({
    url: '/manager/phone',
    method: 'put',
    data: data
  })
}

// 删除phoneManager
export function delNumber(id) {
  return request({
    url: '/manager/phone/' + id,
    method: 'delete'
  })
}
// 导出phoneManager
export function exportNumber(query) {
  return request({
    url: '/manager/phone/export',
    method: 'get',
    params: query
  })
}
// 导入phoneManager
export function importNumber(data) {
  return request({
    url: '/manager/phone/importPhone',
    method: 'post',
    data: data
  })
}
